x86/clang: allow integrated assembler usage
authorRoger Pau Monne <roger.pau@citrix.com>
Fri, 23 Feb 2018 14:11:00 +0000 (14:11 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 26 Feb 2018 17:48:44 +0000 (17:48 +0000)
commite3c6e1b8c2c1054d4b88f26c0b065ee59b109bc5
treecb031d31a620541dade06b1d9f82b7193aa0852b
parenta823a5280f25ad19a751dd9a41044f556471e61a
x86/clang: allow integrated assembler usage

If the required features are present.

Modify as-option-add to add an option in case the test fails, and use
it to detect whether the required clang integrated assembler features
are present.

This patch has been tested with clang 3.5, clang 6, gcc 6.4.0 without
retpoline support and gcc 7.3.1 with retpoline support.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Config.mk
xen/Rules.mk
xen/arch/x86/Rules.mk